<template>
	<!-- 	<page-meta>
		<navigation-bar :title="nbTitle" :subtitle-color="nbFrontColor" :loading="nbLoading" :front-color="nbFrontColor"
			:background-color="nbBackgroundColor" />
	</page-meta> -->
	<view>

		<xio-timetables :Timetables="Timetables"></xio-timetables>
		<!-- 		<view class="top">

			<text class="iconfont" style="font-size: 30rpx; vertical-align: top; position: relative; float: right;"
				@click="gotoNews">详情&#xe64c;</text>

		</view> -->
		<!-- 		<view class="">
			<uni-card>
				<uni-list>
					<uni-list-item showExtraIcon="true" title="第一节课" rightText="8:25-9:05" />
					<uni-list-item showExtraIcon="true" title="第二节课" rightText="9:15-9:55" />
					<uni-list-item showExtraIcon="true" title="第三节课" rightText="10:10-10:50" />
					<uni-list-item showExtraIcon="true" title="第四节课" rightText="11:00-11:40" />
					<uni-list-item showExtraIcon="true" title="第五节课" rightText="14:40-15:20" />
					<uni-list-item showExtraIcon="true" title="第六节课" rightText="15:30-16:10" />
				</uni-list>
			</uni-card>

		</view> -->
	</view>
</template>

<script>
	import {
		classInformation
	} from "@/api/class/class.js"
	export default {
		data() {
			return {
				nbTitle: '课程表',
				nbLoading: false,
				nbFrontColor: '#000000',
				nbBackgroundColor: '#fcc10d',
				Timetables: []

			}
		},
		onLoad(option) {
			const classId = JSON.parse(decodeURIComponent(option.classId));
			classInformation(classId).then((res) => {
				this.Timetables = res
			})
		},
		methods: {

		}
	}
</script>

<style>
	.top {

		background-color: #fff;
		font-size: 27rpx;
		font-weight: bold;
		line-height: 50rpx;
		height: 50rpx;
		border-bottom: 1rpx #dcdcdc solid;
	}
</style>
